﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="content-root"  msdata:IsDataSet="true">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Product">
          <xs:complexType>
            <xs:attribute name="ProductId" type="xs:int" use="required"  />
            <xs:attribute name="ProductName" type="xs:string" use="required" />
            <xs:attribute name="ItemNumber" type="xs:string" use="required" />
            <xs:attribute name="CategoryName" type="xs:string" use="required" />
            <xs:attribute name="Price" type="xs:decimal" use="required" />          
          </xs:complexType>
        </xs:element>
        <xs:element name="Location">
          <xs:complexType>
            <xs:attribute name="LocationId" type="xs:int" use="required"  />
            <xs:attribute name="Name" type="xs:string" use="required" />
            <xs:attribute name="Address" type="xs:string" use="required" />
            <xs:attribute name="City" type="xs:string" use="required" />
            <xs:attribute name="State" type="xs:string" use="required" />
            <xs:attribute name="ZipCode" type="xs:string" use="required" />
            <xs:attribute name="Latitude" type="xs:string" use="optional" />
            <xs:attribute name="Longitude" type="xs:string" use="optional" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  
</xs:schema>
